home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Classic 39
/
CD CLASSIC #39 (1998).iso
/
EMPRESA
/
visio
/
Vistdstd
/
Install
/
Data.Z
/
Exptsetp.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1996-09-04
|
6KB
|
161 lines
VERSION 4.00
Begin VB.Form frmExportSetup
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 3 'Fixed Dialog
Caption = "Export Setup"
ClientHeight = 1920
ClientLeft = 2460
ClientTop = 1995
ClientWidth = 5115
BeginProperty Font
name = "MS Sans Serif"
charset = 0
weight = 700
size = 8.25
underline = 0 'False
italic = 0 'False
strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 2325
Left = 2400
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1920
ScaleWidth = 5115
Top = 1650
Width = 5235
Begin VB.CommandButton btnCancel
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "&Cancel"
Height = 375
Left = 3720
TabIndex = 0
Top = 480
Width = 1275
End
Begin VB.CommandButton btnOK
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "&OK"
Default = -1 'True
Height = 375
Left = 3720
TabIndex = 1
Top = 60
Width = 1275
End
Begin VB.Frame Frame1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "File/Clipboard Export Setup"
ForeColor = &H80000008&
Height = 1755
Left = 120
TabIndex = 3
Top = 60
Width = 3495
Begin VB.ComboBox ctlSepList
Appearance = 0 'Flat
Height = 300
Left = 1680
Style = 2 'Dropdown List
TabIndex = 6
Top = 1260
Width = 1635
End
Begin VB.ComboBox ctlDelList
Appearance = 0 'Flat
Height = 300
Left = 1680
Style = 2 'Dropdown List
TabIndex = 5
Top = 780
Width = 1635
End
Begin VB.CheckBox ctlIncFields
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Include Field Names"
ForeColor = &H80000008&
Height = 255
Left = 360
TabIndex = 4
Top = 360
Width = 2115
End
Begin VB.Label Label4
Alignment = 1 'Right Justify
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Field Separator:"
ForeColor = &H80000008&
Height = 195
Left = 180
TabIndex = 2
Top = 1320
Width = 1365
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Text Delimiter:"
ForeColor = &H80000008&
Height = 195
Left = 300
TabIndex = 7
Top = 840
Width = 1245
End
End
Attribute VB_Name = "frmExportSetup"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
' -----------------------------------------------------------------------------
' Copyright (C) 1993-1996 Visio Corporation. All rights reserved.
' You have a royalty-free right to use, modify, reproduce and distribute
' the Sample Application Files (and/or any modified version) in any way
' you find useful, provided that you agree that Visio has no warranty,
' obligations or liability for any Sample Application Files.
' -----------------------------------------------------------------------------
Option Explicit
Private Sub btnCancel_Click()
Unload frmExportSetup
End Sub
Private Sub btnOK_Click()
'------------------------------------
'--- btnOK_Click --------------------
'-- When the user presses OK we copy the values from the setup forms'
'-- controls into the global export variables.
g_bIncFieldNames = -(ctlIncFields.Value Mod 2)
If ctlDelList.ListIndex <> -1 Then
g_iTextDelimIdx = ctlDelList.ListIndex
End If
If ctlSepList.ListIndex <> -1 Then
g_iFieldSepIdx = ctlSepList.ListIndex
End If
Unload frmExportSetup
End Sub
Private Sub Form_Load()
'------------------------------------
'--- Form_Load ----------------------
'-- When the form is loaded we initialize all the form controls to the
'-- export setup values.
Dim I As Integer
If g_bIncFieldNames Then ctlIncFields.Value = 1
ctlDelList.Clear
ctlSepList.Clear
For I = 0 To UBound(g_TextDelims)
ctlDelList.AddItem ConvertDelimSep(g_TextDelims(I))
Next I
For I = 0 To UBound(g_FieldSeps)
ctlSepList.AddItem ConvertDelimSep(g_FieldSeps(I))
Next I
ctlDelList.ListIndex = g_iTextDelimIdx
ctlSepList.ListIndex = g_iFieldSepIdx
End Sub